package org.aptech.hdax.service.impl;

import java.util.List;

import org.aptech.hdax.dao.DepartmentDao;
import org.aptech.hdax.pojo.Department;
import org.aptech.hdax.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(propagation = Propagation.REQUIRED)
public class DepartmentServiceImpl implements DepartmentService {
	@Autowired
	private DepartmentDao departmentDao;
	@Override
	public List<Department> getAll() {
		return departmentDao.getAll();
	}

	@Override
	public Department get(Integer id) {
		return departmentDao.get(id);
	}

}
